package com.mobiftpcms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.mobiftpcms.dao.StationDao;
import com.mobiftpcms.model.Station;
import com.mobiftpcms.service.StationManager;

public class StationManagerImpl implements StationManager {
	@Autowired
	private StationDao stationDao;

	public List<Station> getStations() {
		return stationDao.getStations();
	}

	public Station saveStation(Station station) {
		return stationDao.saveStation(station);
	}

	public Station deleteStation(Station station) {
		return stationDao.deleteStation(station);
	}
	
	public Station getStationByName(String name) {
		return stationDao.getStationByName(name);
	}

}
